package com.wmm.fast.main.shop2Proxy;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @Auther: Token360
 * @Date: 2018/9/6 14:29
 * @Description:
 */
public class ProxySubject implements Subject {

     private Logger log = LoggerFactory.getLogger(ProxySubject.class);

     private RealSubject realSubject;

     @Override
     public void doSomething() {
          if(realSubject == null) {
               realSubject = new RealSubject();
          }
          log.info("我是X少,我帮朔夜代言");
          realSubject.doSomething();
     }
}
